<div class="widget am-cf">
    <div class="widget-body  am-fr">
            <!-- form start -->
            <form class="am-form tpl-form-line-form" data-am-validator id="formDoSubmitDialog">
                <input type="hidden" Name="Id" id="Id" value="{{.m.Id}}">
                <input type="hidden" Name="ParentId" id="ParentId" value="{{.m.ParentId}}">
                <div class="am-form-group">
                    <label class="am-u-sm-3 am-form-label">菜单名称：</label>
                    <div class="am-u-sm-9">
                        <input type="text" name="MenuName" id="MenuName" placeholder="菜单名称" maxlength="8" value="{{.m.MenuName}}" required>
                        <small>字数不超过4个汉字或8个字母</small>
                    </div>
                </div>
                <div class="am-form-group">
                    <label class="am-u-sm-3 am-form-label">菜单类型：</label>
                    <div class="am-u-sm-9">
                        <label class="am-radio-inline">
                          <input type="radio" name="MenuType" value="2" data-am-ucheck required {{if eq .m.MenuType 2}}checked{{end}}> 发送消息
                        </label>
                        <label class="am-radio-inline">
                          <input type="radio" name="MenuType" value="1" data-am-ucheck required {{if eq .m.MenuType 1}}checked{{end}}> 跳转网页
                        </label>
                    </div>
                </div>
                <div class="am-form-group">
                    <label class="am-u-sm-3 am-form-label">菜单执行：</label>
                    <div class="am-u-sm-9">
                        <input type="text" name="MenuContent" id="MenuContent" placeholder="发送消息/跳转网页地址" value="{{.m.MenuContent}}" required>
                    </div>
                </div>
                <div class="am-form-group">
                    <label class="am-u-sm-3 am-form-label">菜单排序：</label>
                    <div class="am-u-sm-9">
                        <input type="number" name="Orderby" id="Orderby" placeholder="排序值越大越靠前" max="999" value="{{.m.Orderby}}" required>
                        <small>排序值越大越靠前</small>
                    </div>
                </div>
                
                <div class="am-form-group">
                      <label class="am-u-sm-3 am-form-label"></label>
                      <div class="am-u-sm-9">
                      	<button class="am-btn am-btn-secondary" type="submit">确认提交</button>
                        <button class="am-btn am-btn-default" type="reset">重置</button>
                      </div>
                </div>
            </form>
        </div>
</div>